// 商品管理/商品分类
import request from "@/utils/requset";

// 获取商品分类列表
export const getShopCategoryListAPI = ()=>request.get(`Goods/goodsCategory`)

// 添加分类列表
export const addShopCategoryListAPI = (value)=>request.post(`Goods/addCategory/`,value)

// 获取编辑回显
export const getBackShopCategoryAPI = (id)=>request.post(`Goods/editCategory/?id=${id}`)

// 修改分类列表
export const updateShopCategoryAPI = (id,value)=>request.post(`Goods/editCategoryTo?id=${id}/`,value)

// 删除商品分类列表
export const delShopCategoryAPI = (id)=>request.post(`Goods/deleteCategory?id=${id}`)